import matplotlib.pyplot as plt
score=[107,105,122,121,135,99,88,65,140,120,75,95,84,85,87,80,95,94,107,111,120,136,135]
plt.rcParams['font.sans-serif']=['SimHei']
plt.xlabel('分数')
plt.ylabel('学生数量')
plt.title('学生语文成绩分直线图')
plt.hist(score,bins=range(0,150,10),facecolor='red',edgecolor='black')
plt.show()
